Skip to content

Accurate error propagation from RoGetActivationFactory - #559

Merged
kennykerr merged 2 commits into
masterfrom
kennykerr-activation-prop
Mar 16, 2020
Merged

Accurate error propagation from RoGetActivationFactory#559
kennykerr merged 2 commits into
masterfrom
kennykerr-activation-prop

Conversation

@kennykerr

@kennykerr kennykerr commented Mar 16, 2020

Copy link
Copy Markdown
Collaborator

Fixes #552 to properly capture and propagate error information from RoGetActivationFactory when fallback fails.

RoGetActivationFactory returns REGDB_E_CLASSNOTREG rather than CLASS_E_CLASSNOTAVAILABLE when activation fails. The target DLL may return CLASS_E_CLASSNOTAVAILABLE from DllGetActivationFactory. That's why a few of the tests needed updating since those tests were relying on the previous behavior where RoGetActivationFactory was sidestepped entirely.

@kennykerr
kennykerr requested a review from Scottj1s March 16, 2020 18:02
@kennykerr
kennykerr merged commit b722907 into master Mar 16, 2020
@kennykerr
kennykerr deleted the kennykerr-activation-prop branch March 16, 2020 19:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

get_activation_factory does not always propagate the correct error info

2 participants